<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改检测机构基本')" />
	<th:block th:include="include :: datetimepicker-css" />
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: datetimepicker-js" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-tJcJcjg-edit" th:object="${tJcJcjg}">
		<input id="jcjgId" name="jcjgId" th:field="*{jcjgId}"  type="hidden">
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span
							style="color: red; ">*</span>统一社会信用代码：</label>
					<div class="col-sm-10">
						<input id="code" name="code" th:field="*{code}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span
							style="color: red; ">*</span>检测机构名称：</label>
					<div class="col-sm-10">
						<input id="agencyName" name="agencyName" th:field="*{agencyName}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label"><span
							style="color: red; ">*</span>单位地址：</label>
					<div class="col-sm-10">
						<input id="address" name="address" th:field="*{address}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">法人代表：</label>
					<div class="col-sm-8">
						<input id="legalRepresentative" name="legalRepresentative" th:field="*{legalRepresentative}" class="form-control" type="text">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">证件号码：</label>
					<div class="col-sm-8">
						<input id="idCard" name="idCard" th:field="*{idCard}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">所属行政区：</label>
					<div class="col-sm-8">
						<input name="distinct" id="distinct" class="form-control" th:field="*{district}" readonly type="text"  data-toggle="city-picker">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">邮政编码：</label>
					<div class="col-sm-8">
						<input id="emailCode" name="emailCode" th:field="*{emailCode}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">经济性质：</label>
					<div class="col-sm-8">
						<input id="economicNature" name="economicNature" th:field="*{economicNature}" class="form-control" type="text">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">成立日期：</label>
					<div class="col-sm-8">
						<input id="date" name="date" th:value="${#dates.format(tJcJcjg.date,'yyyy-MM-dd')}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>


		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">联系人：</label>
					<div class="col-sm-8">
						<input id="tellMan" name="tellMan" th:field="*{tellMan}" class="form-control" type="text">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">联系电话：</label>
					<div class="col-sm-8">
						<input id="tellPhone" name="tellPhone" th:field="*{tellPhone}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">联系人职务：</label>
					<div class="col-sm-8">
						<input id="tellPosition" name="tellPosition" th:field="*{tellPosition}" class="form-control" type="text">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">传真电话：</label>
					<div class="col-sm-8">
						<input id="fax" name="fax" th:field="*{fax}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">单位网址：</label>
					<div class="col-sm-8">
						<input id="organizationUrl" name="organizationUrl" th:field="*{organizationUrl}" class="form-control" type="text">
					</div>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="form-group">
					<label class="col-sm-4 control-label">邮箱地址：</label>
					<div class="col-sm-8">
						<input id="email" name="email" th:field="*{email}" class="form-control" type="text">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group">
					<label class="col-sm-2 control-label">备注：</label>
					<div class="col-sm-10">
						<textarea id="remarks" name="remarks" th:field="*{remarks}"
								  class="form-control" type="text"></textarea>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
	<div class="row">
		<div class="col-sm-offset-5 col-sm-10">
			<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
			<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
		</div>
	</div>
    <script type="text/javascript">
		var prefix = ctx + "system/tJcJcjg";
		$("#date").datetimepicker({
			format: "yyyy-mm-dd",
			minView: "month",
			autoclose: true
		});
		$("#form-tJcJcjg-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-tJcJcjg-edit').serialize());
	        }
	    }
	</script>
</body>
</html>


<div class="row">
	<div class="col-sm-6">
		<div class="form-group">

		</div>
	</div>
	<div class="col-sm-6">
		<div class="form-group">

		</div>
	</div>
</div>